#ifndef _ITEM_HPP_
#define _ITEM_HPP_

#include "include.hpp"

class xlider_item:public xlider_class {
public:
	string bullet_type;
	string bullet_color;
	string text;
	string name;
	string type;
	string align;
	string fontname;
	string fontcolor;
	double fontsize;

	int level;
	double spacing;
	double distance;
	double indent;
	double height,width;
	double x,y;
	double offsetx, offsety;
	double bullet_radius;
	double bullet_space;

	bool floating;
	
	// remove candidates....
	virtual double get_x(){return x*slide_width;}
	virtual double get_y(){return y*slide_height;}	
	virtual double set_pos(double px, double py){x=px/slide_width;y=py/slide_height;}
	virtual double get_height(){return height*slide_height;}
	virtual double get_width(){return width*slide_width;}
	virtual double get_indent(){return indent*slide_width;}
	virtual double get_offsetx(){return offsetx*slide_width;}
	virtual double get_offsety(){return offsety*slide_height;}
	virtual void   set_textwidth(double wdt){width=wdt;}
	virtual double get_fontsize(){return fontsize*slide_height;}

};

#endif
